<?php
	
require_once("content.php");
require_once("../tags/tags.php");

$tags = json_decode($_POST["tags"]);

$tagsObj = new Tags();
$tagIds = $tagsObj->getTagIds($tags);

$content = new Content();

echo json_encode($content->getContent($tagIds));

?>